/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.config.entity.message;

import org.apache.ibatis.type.Alias;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 短信配置Entity
 *
 * @author JiangYongKang
 * @version 2016-12-30
 */
@Alias("configMessage")
public class ConfigMessage extends DataEntity<ConfigMessage> {

    private static final long serialVersionUID = 1L;
    private String url;        // URL
    private String appKey;        // AppKey
    private String secret;        // Secret
    private String signName;//短信头
    private String templateCode;//短信模板号

    public ConfigMessage() {
        super();
    }

    public ConfigMessage(String id) {
        super(id);
    }

    @Length(min = 1, max = 1024, message = "URL长度必须介于 1 和 1024 之间")
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Length(min = 1, max = 255, message = "AppKey长度必须介于 1 和 255 之间")
    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    @Length(min = 1, max = 255, message = "Secret长度必须介于 1 和 255 之间")
    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }
    @Length(min=0, max=100, message="sign_name长度必须介于 0 和 100 之间")
    public String getSignName() {
        return signName;
    }

    public void setSignName(String signName) {
        this.signName = signName;
    }
    
    @Length(min=0, max=100, message="template_code长度必须介于 0 和 100 之间")
    public String getTemplateCode() {
        return templateCode;
    }

    public void setTemplateCode(String templateCode) {
        this.templateCode = templateCode;
    }
}